package com.oppo.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author steve
 * @since 2022-03-12 10:20
 */

@Api(value = "控制层",
        tags = "测试控制层")
@RestController
@RequestMapping(value = "/knife")
public class KnifeDemoController {

    @ApiOperation("测试接口方法")
    @PostMapping(value = "/hello")
    public String hello(String name) {
        return "hello" + name;
    }
}
